export const getImgUrl = (src: string) => {
	if (!src) {
		return undefined
	}
	if (src.indexOf('.') === -1) {
		src += '.svg'
	}
	return new URL(`../../../assets/img/${src}`, import.meta.url).href
}
